package cs4game;

public class TexPoint {
	public double x, y;
	public TexPoint(double xP, double yP){x = xP; y = yP;}
	public TexPoint(String c) { // format "x, y";
		String[] coorsStr = c.split(", ");
		x = Double.parseDouble(coorsStr[0]);
		y = Double.parseDouble(coorsStr[1]);
	}
	public String toString(){
		return "("+x+", "+y+")";
	}
}
